/**
 * Created by rekey on 13-12-13.
 */
var path = require('path');
var os = require('os');
var auth = {
  ak: process.argv[2],
  sk: process.argv[3]
};
var config = {
  file: {
    tmp: os.tmpDir(),
    storage: os.tmpDir(),
    domain: [
      'http://dn-yqimg0.qbox.me/',
      'http://dn-yqimg1.qbox.me/',
      'http://dn-yqimg2.qbox.me/',
      'http://dn-yqimg3.qbox.me/',
      'http://dn-yqimg4.qbox.me/'
    ],
    upyun: {
      buck: auth.buck || 'buckName',
      user: auth.user || 'userName',
      password: auth.password || 'password',
      domain: 'http://' + (auth.buck || 'buckName') + '.b0.upaiyun.com/'
    },
    qiniu: {
      ak: auth.ak || 'qiniu ak',
      sk: auth.sk || 'qiniu sk',
      buck: 'youqu'
    }
  },
  'host': {
    ip: '0.0.0.0',
    port: 3001
  }
};
module.exports = config;